package com.xy.biz.uc.domain.enums;

import com.xy.lang.domain.KeyValue;
import com.xy.lang.enums.StringCodeEnum;

public enum UserGroupCodeEnum implements StringCodeEnum {

    HM("HM", "霍尔姆斯（北京）生物科技有限公司"),
    YX("YX", "营销中心"),
    GG("GG", "供管中心"),
    CZ("CZ", "产品中心"),
    RZ("RZ", "人事行政中心"),
    XS("XS", "销售部"),
    SC("SC", "市场部"),
    SW("SW", "商务部"),
    CG("CG", "采购部"),
    CC("CC", "仓储部"),
    WL("WL", "物流部"),
    SH("SH", "生产部"),
    ZJ("ZJ", "质检部"),
    ZB("ZB", "质保部"),
    JS("JS", "技术服务部"),
    ZL("ZL", "产品运营部"),
    RX("RX", "人事行政部");

    private String code;
    private String name;

    UserGroupCodeEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public KeyValue<String, String> toKeyValue() {
        return new KeyValue<>(this.code, this.name);
    }
}
